package com.lap.context.starter.handler;

import com.lap.context.starter.entity.LocalInfo;
import lombok.experimental.UtilityClass;

@UtilityClass
public class LangHandler {

  private static final ThreadLocal<LocalInfo> THREAD_LOCAL = new ThreadLocal<>();

  public static void set(LocalInfo localInfo) {
    THREAD_LOCAL.set(localInfo);
  }

  public static LocalInfo get() {
    return THREAD_LOCAL.get();
  }

  public static void remove() {
    THREAD_LOCAL.remove();
  }
}
